package com.bsoft.ecommerce.dao;

import com.bsoft.ecommerce.constant.BrandCategory;
import com.bsoft.ecommerce.constant.GoodsCategory;
import com.bsoft.ecommerce.entity.EcommerceGoods;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;

public interface EcommerceGoodsDao  extends PagingAndSortingRepository<EcommerceGoods,Long> {
    Optional<EcommerceGoods>  findFirst1ByGoodsCategoryAndBrandCategoryAndGoodsName(
            GoodsCategory goodsCategory, BrandCategory brandCategory,String goodsName
            );
}
